<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style type="text/css">
        *
        {
            margin: 0;
            padding: 0;
        }
        /*设置外层nav*/
        .nav
        {
            width: 100%;
        }
        /*设置图片的每一行容器*/
        .nav-inner
        {
            /*设置为弹性容器*/
            display: flex;
            /*设置主轴上空白的分布*/
            justify-content: space-around;
        }
        .item
        {
            width: 15%;
            /*background-color: #bfa;*/
            /*flex: auto;*/
        }
        .item img
        {
            /*设置图片宽度和父元素一样*/
            width: 100%;

        }
        span
        {
            height: 35px;
            line-height: 35px;
            width: 100px;
            display: block;
            margin: 0 auto;
            text-align: center;
        }
        a
        {
            text-decoration: none;
        }
    </style>
</head>
<body>
    <!--创建一个外层的容器-->
    <nav class="nav">
        <div class="nav-inner">
            
            <div class="item">
                <a href="#">
                    <img src="../Taobao/01.jpg">
                    <span>天猫</span>
                </a>
            </div>

            <div class="item">
                <a href="#">
                    <img src="../Taobao/02.jpg">
                    <span>聚划算</span>
                </a>
            </div>

            <div class="item">
                <a href="#">
                    <img src="../Taobao/03.jpg">
                    <span>天猫国际</span>
                </a>
            </div>

            <div class="item">
                <a href="#">
                    <img src="../Taobao/04.jpg">
                    <span>外卖</span>
                </a>
            </div>

            <div class="item">
                <a href="#">
                    <img src="../Taobao/05.jpg">
                    <span>天猫超市</span>
                </a>
            </div>
        
        </div>

        <div class="nav-inner">
            
            <div class="item">
                <a href="#">
                    <img src="../Taobao/06.jpg">
                    <span>充值中心</span>
                </a>
            </div>

            <div class="item">
                <a href="#">
                    <img src="../Taobao/07.jpg">
                    <span>飞猪旅行</span>
                </a>
            </div>

            <div class="item">
                <a href="#">
                    <img src="../Taobao/08.jpg">
                    <span>领金币</span>
                </a>
            </div>

            <div class="item">
                <a href="#">
                    <img src="../Taobao/09.jpg">
                    <span>拍卖</span>
                </a>
            </div>

            <div class="item">
                <a href="#">
                    <img src="../Taobao/10.jpg">
                    <span>分类</span>
                </a>
            </div>
        
        </div>
    </nav>
</body>
</html>